import request from '@/utils/request'
export default{
    // 添加小节
    addVideo(video){
        return request({
            url : '/eduService/video/addVideo',
            method : 'post',
            data : video
        })        
    },

    // 根据小节 ID 查询小节
    getVideoById(videoId){
        return request({
            url : `/eduService/video/getVideoById/${videoId}`,
            method : 'get'
        })
    },

    // 修改小节
    updateVideo(video){
        return request({
            url : `/eduService/video/updateVideo`,
            method : 'post',
            data : video
        })
    },

    // 删除小节
    deleteVideo(videoId){
        return request({
            url : `/eduService/video/${videoId}`,
            method : 'delete'
        })
    },

    // 删除视频
    deleteAlyVod(id){
        return request({
            url : '/eduVod/video/removeAlyVideo/' + id,
            method : 'delete'
        })
    }
}
